import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager

#open the driving_manager create a new driver for Google
ChromeIns = ChromeDriverManager().install()

#driver is the label of the browser opened - the first page appeared when you open a browser
driver=webdriver.Chrome(service=Service(ChromeIns))
time.sleep(2)

driver.get("https://www.baidu.com")
time.sleep(2)

driver.find_element(By.CSS_SELECTOR, "#chat-textarea").send_keys("迪丽热巴")
time.sleep(2)

driver.find_element(By.CSS_SELECTOR, "#chat-submit-button").click()
time.sleep(2)

driver.quit()